import java.util.Date;
public class Log {
    private String logId;
    private Date operateTime;
    private String operateType;
    private String operator;
    public Log(String logId, Date operateTime, String operateType, String operator) {
        this.logId = logId;
        this.operateTime = operateTime;
        this.operateType = operateType;
        this.operator = operator;
    }
    public String getLogId() {
        return logId;
    }
    public Date getOperateTime() {
        return operateTime;
    }
    public String getOperateType() {
        return operateType;
    }
    public String getOperator() {
        return operator;
    }
    public void recordLog(String content) {//记录日志内容到控制台
        System.out.println("[LOG] " + operateTime + " | " + operateType + " | " + operator + " | " + content);
    }
}
